#ifndef VIEWINPUTDIALOG_H
#define VIEWINPUTDIALOG_H

#include <QPushButton>
#include <QBoxLayout>
#include <QSpinBox>
#include <QPainter>
#include <QDialog>
#include <QPixmap>
#include <QLabel>

#include "defs.h"

class ViewInputDialog : public QDialog
{
Q_OBJECT
private:
    QVector< QVector<int> > inputTable;

    const QRect pixmapRect;
    const QRect indentRect;


    QPixmap *imagePixmap;
    QLabel *imageLabel;
    QLabel *machineNumberLabel;

    QSpinBox *machNumberSpin;
    QPushButton *cancelButton;

    QVBoxLayout *mainLayout;
    QHBoxLayout *buttonsLayout;

public:
    ViewInputDialog(QWidget *parent = 0);
    void setInputTable( const QVector< QVector<int> > &table );

signals:

public slots:
    void drawMachineInput( int num );
};

#endif // VIEWINPUTDIALOG_H
